import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.TextField;

import javax.swing.*;


public class Global {

	public static JFrame globalFrame = new JFrame();
	static View viewSystem = new View();
	public static JPanel globalPanel = viewSystem.setPanel();
	static Menu menuSystem = new Menu();
	public static JMenuBar globalMenu = menuSystem.setMenuBar();
	public static TextField playerOneName = new TextField();
	public static TextField playerTwoName = new TextField();
	public static ImageIcon playerOneAvatar = new ImageIcon();
	public static ImageIcon playerTwoAvatar = new ImageIcon();
	public static String playerOneString = "";
	public static String playerTwoString = "";
	public static boolean removeToken = false;
	public static int token1Played = 0;
	public static int token2Played = 0;
	public static boolean millFormed = false;
	public static String token1Color ="";
	public static String token2Color ="";
	public static Color boardColor;
	public static boolean isPVCMode = false;
	public static int globalCounter = 0;
	public static int mutex = 0;
	
	public static JPanel setPanel()
	{
		globalPanel.removeAll();
		globalPanel.setBounds(0, 0, 1000, 800);
		return globalPanel;
	}
	
	public static void setPanelVisibility(boolean Visibility)
	{
		globalPanel.setVisible(Visibility);		
	}
}
